package com.thread;

/**
 * @author Conceit
 * @version 1.0, 2017/1/3
 */
public class TestThreadRunable implements Runnable {

    private int count = 15;
    private String name;

    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println(Thread.currentThread().getName() + "name" + "   " + "count" + count++);
            //线程中间随机相差时间
            try {
                Thread.sleep((int) Math.random() * 10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }
    }
}
